<!DOCTYPE html>
<html>

<!-- Mirrored from www.zi-han.net/theme/hplus/table_jqgrid.html by HTTrack Website Copier/3.x [XR&CO'2014], Wed, 20 Jan 2016 14:20:02 GMT -->

<head>

    <meta charset="utf-8">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">

    <title>退货详情</title>

    <link href="css/bootstrap.min14ed.css?v=3.3.6" rel="stylesheet">
    <link href="css/font-awesome.min93e3.css?v=4.4.0" rel="stylesheet">
    <link href="css/plugins/sweetalert/sweetalert.css" rel="stylesheet">
    <link href="css/plugins/iCheck/custom.css" rel="stylesheet">
    <link href="css/animate.min.css" rel="stylesheet">
    <link href="css/style.min862f.css?v=4.1.0" rel="stylesheet">
    <link href="css/timePicker.css" rel="stylesheet">
    <link href="css/newStyle.css" rel="stylesheet">
    <!--图片插件-->
	<link href="js/plugins/fancybox/jquery.fancybox.css" rel="stylesheet">

    <style>
        /* 重写bookstrap样式表 勿删 */
        .form_inputs {
            width: 160px;
            background-color: #ebebeb;
            border: 1px solid #06a3f9;
            border-radius: 20px;
            -webkit-border-radius: 20px;
            -moz-border-radius: 20px;
            -o-border-radius: 20px;
            -ms-border-radius: 20px;
        }

        .ibox-title {
            padding: 20px;
        }

        .mb30 {
            margin-bottom: 20px;
        }

        /* 重写bookstrap样式表 勿删 */
        .ui-jqdialog {
            height: auto !important;
        }

        .ui-common-table tbody {
            background-color: #eaf5fc !important;
        }

        .modal-dialog {
            margin: 80px auto !important;
        }

        .form-group {
            margin-left: 0px !important;
            margin-right: 0px !important;
        }

        .modal-sm {
            width: 600px;
        }

        .col-sm-3 {
            width: 30%;
        }

        .col-sm-8 {
            width: 70%;
        }

        .form-horizontal .control-label {
            text-align: left;
            padding-top: 5px;
            font-size: 18px;
        }

        @media only screen and (min-width: 100px) and (max-width: 600px) {
            .modal-sm {
                width: 400px;
            }

            .col-sm-3 {
                width: 40%;
            }

            .col-sm-8 {
                width: 60%;
            }

            .scroll_div {
                width: 85%;
            }

            .form-horizontal .control-label {
                text-align: left;
                padding-top: 5px;
                font-size: 14px;
            }

            .dialog_btn {
                font-size: 14px !important;
            }
        }

        @media only screen and (min-width: 650px) {
            .modal-sm {
                width: 600px;
            }
        }

        /*以下是等待状态的通用样式*/
        .wating_big_div {
            position: fixed;
            top: 0px;
            width: 100%;
            height: 100%;
            display: table;
            z-index: 9999;
        }

        .zhezhao {
            opacity: 0.3;
            position: absolute;
            top: 0px;
            width: 100%;
            height: 100%;
            z-index: 9999;
        }

        .wating_content_div {
            text-align: center;
            background: none;
            display: table-cell;
            vertical-align: middle;
        }

        .coupon_content{
            width: 95%;
            margin: 0 auto;
            overflow: hidden;
        }
        .coupon_content_box{
            background: #fff;
        }
        .coupon_content_pading{
            width: 95%;
            margin: 0 auto;
            overflow: hidden;
        }
        .coupon_title{
            width: 100%;
            background: #f4f4f4;
        }
        .coupon_title_box{
            display: flex;
            justify-content: space-between;
            padding: 20px 0;
            align-items: center;
        }
        .coupon_title_box i{
            font-size: 16px;
            color:red;
        }
        .coupon_title_left span{
            font-size: 15px;
            color: red;
        }
        .coupon_title_right{
            width: 80px;
            height: 35px;
            border: 1px solid #999999;
            line-height: 35px;
            text-align: center;
            cursor: pointer;
        }
        .coupon_info{
            width: 100%;
            margin: 20px 0 10px;
            font-size: 16px;
        }
        .coupon_content_info{
            width: 100%;
            margin-bottom: 40px;
        }
        .coupon_content_kaiguan{
            width: 100%;
            display: none;
        }
        .coupon_content_button{
            width: 100%;
            margin: 50px 0px;
            display: flex;
            justify-content: center;
        }
        .coupon_content_bton{
            width: 160px;
            height: 35px;
            border: 1px solid #000000;
            text-align: center;
            line-height: 35px;
            border-radius: 3px;
            color: #000;
            cursor: pointer;
        }
        .coupon_content_btoff{
            width: 160px;
            height: 35px;
            text-align: center;
            line-height: 35px;
            background: inherit;
            background-color: rgba(26, 188, 156, 1);
            border: none;
            border-radius: 3px;
            margin-left: 60px;
            color: #fff;
            cursor: pointer;
        }
        .videosList{
            width: 140px!important;
            height: 80px!important;
        }
        .coupon_table_footer{
            width: 100%;
        }
      
        .coupon_table_fbox{
            width: 96%;
            height: 47px;
            line-height: 47px;
            text-align: right;
            background: #eaf5fc;
            border-bottom: 1px solid #e7eaec;
            border-right: 1px solid #e7eaec;
            border-left: 1px solid #e7eaec;
        }
        .coupon_table_fbox span{
            color: red;
            margin-right: 20px;
        }
        .coupon_table_info tr th:nth-child(1){
            width: 20%;
        }
        .coupon_table_info tr th:nth-child(2){
            background: #fff;
        }
        .coupon_table_form tr th:nth-child(1){
            width: 20%;
        }
        .coupon_table_form tr th:nth-child(2){
            background: #fff;
            text-align: left;
        }
        #check_div select{
            width: 140px;
        }
        #freight_price label{
            line-height: 30px;
            height: 30px;
            overflow: hidden;
        }
        #freight_price input{
            margin-top: 10px;
        }

        /* 步骤条 */
        .coupon_title_sup{
            width: 100%;
            height: 120px;
            overflow: hidden;
        }
        .steps{
            width: 70%;
            margin: 20px auto;
        }
        .step {
            position: relative;
            vertical-align: top;
            display: inline-block;
            margin-right: 130px;
        }

        .step-head {
            width: 50px;
            height: 50px;
            border-radius: 50%;
            line-height: 50px;
            text-align: center;
            vertical-align: top;
            color: #bfcbd9;
            font-size: 20px;
            border: 2px solid #bfcbd9;
            z-index: 10000;
        }
        .step-main {
            font-size: 16px;
            color: #48576a;
            margin-top: 10px;
        }

        .step-line {
            position: absolute;
            top: 23px;
            height: 5px;
            width: 100px;
            right: -110px;
            display: inline-block;
            background-color: #bfcbd9;
            z-index: 10000;
        }

        .step-circle {
            margin: 8px ;
            width: 30px;
            height: 30px;
            border-radius: 50%;
            background-color: #bfcbd9;
        }

        .is-sucess > .step-head {
            color: #FFA71F;
            border-color: #FFA71F;
        }
        .is-sucess > .step-head .step-circle {
            background-color: #FFA71F;
        }
        .is-sucess > .step-head > .step-line {
            background-color: #FFA71F;
        }
        .last-sucess > .step-head {
            color: #FFA71F;
            border-color: #FFA71F;
        }
        .last-sucess > .step-head .step-circle {
            background-color: #FFA71F;
        }
        /* 表格 */
        .coupon_table{margin: 20px 0;}
        .coupon_table_box{width:100%;font-size:12px;}
        .coupon_table_box tr{
            display: flex;
            flex-wrap: wrap;
            width: 100%;
        }
        .coupon_table_box td{border:1px solid #999999;border-right:none;border-top:none;display:inline-block;padding:0;width: 16%;}
        .coupon_table_box td:last-child{border-right:1px solid #999999 !important;}
        .my_title{padding:15px 0;background: #F5F5F6;border-bottom: 1px solid #999999;width: 100%;text-align: center;font-weight: 700;}
        .my_content{padding: 30px 0;width: 100%;text-align: center;background: #eaf5fc;}

        .coupon_tableb{margin: 20px 0;}
        .coupon_table_boxb{width:100%;font-size:12px;}
        .coupon_table_boxb tr{
            display: flex;
            flex-wrap: wrap;
            width: 100%;
        }
        .coupon_table_boxb td{border:1px solid #999999;border-right:none;border-top:none;display:inline-block;padding:0;width: 16%;}
        .coupon_table_boxb td:last-child{border-right:1px solid #999999 !important;}
        .my_titleb{padding:15px 0;background: #F5F5F6;border-bottom: 1px solid #999999;width: 100%;text-align: center;font-weight: 700;}
        .my_contentb{padding: 18px 0;width: 100%;text-align: center;background: #eaf5fc;line-height: 90px;}
        #goodsInfo td{
            width: 24%;
        }
        #andGoodsInfo td{
            width: 24%;
        }
        .my_contentb p{
            height: 20px;
            line-height: 20px;
        }

        .coupon_tableb{margin: 20px 0;}
        .coupon_table_boxc{width:100%;font-size:12px;}
        .coupon_table_boxc tr{
            display: flex;
            flex-wrap: wrap;
            width: 100%;
        }
        .coupon_table_boxc td{border:1px solid #999999;border-right:none;border-top:none;display:inline-block;padding:0;width: 16%;}
        .coupon_table_boxc td:last-child{border-right:1px solid #999999 !important;}
        .my_titlec{padding:15px 0;background: #F5F5F6;border-bottom: 1px solid #999999;width: 100%;text-align: center;font-weight: 700;}
        .my_contentc{padding: 30px 0;width: 100%;text-align: center;background: #eaf5fc;}

        .videosList{
            width: 140px!important;
            height: 80px!important;
        }
        .stepe, .stepd, .stepg{
            display: none;
        }
    </style>
</head>

<body class="gray-bg">
    <div class="wrapper wrapper-content  animated fadeInRight">
        <div class="row">
            <div class="col-sm-12">
                <div class="ibox ">
                    <div class="ibox-title pull-left w100p" style="padding: 10px 20px;border-bottom: 1px solid #e4e4e4;">
                        <div class="pull-left">
                            <div class="ibox-tools cache5">
                                订单详情
                            </div>
                        </div>

                        <div class="pull-right">
                            <button class="refresh_btn">
                                <a class="refresh_a">
                                    <i class="glyphicon glyphicon-chevron-left"></i> 返回
                                </a>
                            </button>
                        </div>
                    </div>
                    <div>
                        <div class="coupon_title_sup">
                            <div class="steps">
                                <div class="step stepa">
                                    <div class="step-head">
                                        <div class="step-line"></div>
                                        <div class="step-icon">
                                            1
                                        </div>
                                    </div>
                                    <div class="step-main">
                                        提交订单
                                    </div>
                                </div>
                                <div class="step stepb">
                                    <div class="step-head">
                                        <div class="step-line"></div>
                                        <div class="step-icon">
                                            2
                                        </div>
                                    </div>
                                    <div class="step-main">
                                        支付订单
                                    </div>
                                </div>
                                <div class="step stepc">
                                    <div class="step-head">
                                        <div class="step-line"></div>
                                        <div class="step-icon">
                                            <div class="step-circle"></div>
                                        </div>
                                    </div>
                                    <div class="step-main">
                                        平台发货
                                    </div>
                                </div>
                                <div class="step stepd">
                                    <div class="step-head">
                                        <div class="step-line"></div>
                                        <div class="step-icon">
                                            <div class="step-circle"></div>
                                        </div>
                                    </div>
                                    <div class="step-main">
                                        确认收货
                                    </div>
                                </div>
                                <div class="step stepe">
                                    <div class="step-head">
                                        <div class="step-line"></div>
                                        <div class="step-icon">
                                            <div class="step-circle"></div>
                                        </div>
                                    </div>
                                    <div class="step-main">
                                        退款
                                    </div>
                                </div>
                                <div class="step stepg">
                                    <div class="step-head">
                                        <div class="step-line"></div>
                                        <div class="step-icon">
                                            <div class="step-circle"></div>
                                        </div>
                                    </div>
                                    <div class="step-main">
                                        退货退款
                                    </div>
                                </div>
                                <div class="step stepf">
                                    <div class="step-head">
                          
                                        <div class="step-icon">
                                            <div class="step-circle"></div>
                                        </div>
                                    </div>
                                    <div class="step-main">
                                        完成评价
                                    </div>
                                </div>
                            </div>
                        </div>
                        <div class="coupon_title">
                            <div class="coupon_content">
                                <div class="coupon_title_box">
                                    <div class="coupon_title_left">
                                        <i class="layui-icon layui-icon-tips"></i>
                                        <span>当前订单状态：</span>
                                        <span class="noStates"></span>
                                    </div>
                                    <!-- <div class="coupon_title_right">备注订单</div> -->
                                </div>
                            </div>
                        </div>
                        <div class="coupon_content_box">
                            <div class="coupon_content_pading">
                                <div class="coupon_content_info">
                                    <div class="coupon_info">
                                        <i class="glyphicon glyphicon-th-list"></i>
                                        <span>基本信息</span>
                                    </div>
                                    <div class="coupon_table">
                                        <table class="coupon_table_box">
                                            
                                            <tr>
                                                <td>
                                                    <div class="my_title">订单编号</div>
                                                    <div class="my_content infoa"></div>
                                                </td>
                                                <td>
                                                    <div class="my_title">发货单流水号</div>
                                                    <div class="my_content infob"></div>
                                                </td>
                                                <td>
                                                    <div class="my_title">用户账号</div>
                                                    <div class="my_content infoc"></div>
                                                </td>
                                                <td>
                                                    <div class="my_title">支付方式</div>
                                                    <div class="my_content infod"></div>
                                                </td>
                                                <td>
                                                    <div class="my_title">订单来源</div>
                                                    <div class="my_content infoe"></div>
                                                </td>
                                                <td>
                                                    <div class="my_title">订单类型</div>
                                                    <div class="my_content infof"></div>
                                                </td>
                                                <td>
                                                    <div class="my_title">配送方式</div>
                                                    <div class="my_content infog"></div>
                                                </td>
                                                <td>
                                                    <div class="my_title">物流单号</div>
                                                    <div class="my_content infoh">暂无</div>
                                                </td>
                                                <td>
                                                    <div class="my_title">自动确认收货时间</div>
                                                    <div class="my_content infoi"></div>
                                                </td>
                                                <td>
                                                    <div class="my_title">订单可得保盾</div>
                                                    <div class="my_content infoj"></div>
                                                </td>
                                                <td>
                                                    <div class="my_title">订单可得成长值</div>
                                                    <div class="my_content infok"></div>
                                                </td>
                                                <td>
                                                    <div class="my_title">活动信息</div>
                                                    <div class="my_content infol"></div>
                                                </td>
                                            </tr>
                                        </table>
                                    </div> 
                                </div>

                                <div class="coupon_content_info">
                                    <div class="coupon_info">
                                        <i class="glyphicon glyphicon-th-list"></i>
                                        <span>收货人信息</span>
                                    </div>
                                    <div class="coupon_table_b">
                                        <table id="goodsInfo" class="coupon_table_boxb">
                                            <tr>
                                                <td>
                                                    <div class="my_titleb">收货人</div>
                                                    <div class="my_contentb goodsInfoa"></div>
                                                </td>
                                                <td>
                                                    <div class="my_titleb">手机号码</div>
                                                    <div class="my_contentb goodsInfob"></div>
                                                </td>
                                                <td>
                                                    <div class="my_titleb">邮政编码</div>
                                                    <div class="my_contentb goodsInfoc">暂无</div>
                                                </td>
                                                <td>
                                                    <div class="my_titleb">收货地址</div>
                                                    <div class="my_contentb goodsInfod">暂无</div>
                                                </td>
                                            </tr>
                                        </table>
                                    </div> 
                                </div>

                                <div class="coupon_content_info">
                                    <div class="coupon_info">
                                        <i class="glyphicon glyphicon-th-list"></i>
                                        <span>商品信息</span>
                                    </div>
                                    <div class="coupon_table_b">
                                        <table class="table table-bordered mb0 " style="width: 96%;">
                                            <thead class="orderTab">
                                                <tr>
                                                    <th>商品图片</th>
                                                    <th>商品名称</th>
                                                    <th>价格/货号</th>
                                                    <th>属性</th>
                                                    <th>数量</th>
                                                    <th>库存</th>
                                                    <th>小计</th>
                                                </tr>
                                            </thead>
                                            <tbody id="tbody_list1"></tbody>
                                            
                                        </table>
                                    </div>
                                    <div class="coupon_table_footer">
                                        <div class="coupon_table_fbox">
                                            合计：<span class="coupon_table_allmany">¥200.00</span>
                                        </div>
                                    </div>
                                </div>
                                <!-- 费用 -->
                                <div class="coupon_content_info">
                                    <div class="coupon_info">
                                        <i class="glyphicon glyphicon-th-list"></i>
                                        <span>费用信息</span>
                                    </div>
                                    <div class="coupon_table_c">
                                        <table id="goodsInfo" class="coupon_table_boxc">
                                            <tr>
                                                <td>
                                                    <div class="my_titlec">商品合计</div>
                                                    <div class="my_contentc costInfoa"></div>
                                                </td>
                                                <td>
                                                    <div class="my_titlec">运费</div>
                                                    <div class="my_contentc costInfob"></div>
                                                </td>
                                                <td>
                                                    <div class="my_titlec">优惠券</div>
                                                    <div class="my_contentc costInfoc">暂无</div>
                                                </td>
                                                <td>
                                                    <div class="my_titlec">保盾抵扣</div>
                                                    <div class="my_contentc costInfod">暂无</div>
                                                </td>
                                                <td>
                                                    <div class="my_titlec">活动优惠</div>
                                                    <div class="my_contentc costInfoe">暂无</div>
                                                </td>
                                                <td>
                                                    <div class="my_titlec">折扣金额</div>
                                                    <div class="my_contentc costInfof">暂无</div>
                                                </td>
                                                <td>
                                                    <div class="my_titlec">订单总金额</div>
                                                    <div class="my_contentc costInfog">暂无</div>
                                                </td>
                                                <td>
                                                    <div class="my_titlec">应付款金额</div>
                                                    <div class="my_contentc costInfoh">暂无</div>
                                                </td>
                                            </tr>
                                        </table>
                                    </div> 
                                </div>
                            </div>
                        </div>
                    </div>
                </div>
            </div>
        </div>
    </div>

    <script src="js/jquery-2.1.0.js" type="text/javascript" charset="utf-8"></script>
    <script src="js/bootstrap.min.js?v=3.3.6"></script>
    <script src="js/plugins/peity/jquery.peity.min.js"></script>
    <script src="js/content.min.js?v=1.0.0"></script>
    <script src="js/plugins/layer/laydate/laydate.js"></script>
    <script src="js/plugins/sweetalert/sweetalert.min.js"></script>
    <script src="js/plugins/fancybox/jquery.fancybox.js"></script>
    <script src="js/plugins/iCheck/icheck.min.js"></script>
    <script src="js/common.js" type="text/javascript" charset="utf-8"></script>
    <script src="js/jquery-timepicker.js" type="text/javascript" charset="utf-8"></script>
    <!--ajax上传插件:jquery.form ajaxSubmit-->
    <script src="js/jquery-form.js" type="text/javascript" charset="utf-8"></script>
    <script>
        var tableTimeout, addTimeout, setPowerTime, editManageTimeout, deleteTimeOut, getPowerTime, limits = 10,
            page = 1,
            counts = 0,
            table_title, roleID;
        var cherk_roleId;
        var allMany = 0;
        var totalPages = 0;
        var maxIndex;
        var tableHtml;
        var userMessage;
        var nickname,accountPhone,storeName,goodsName
        var listId = getUrlParms('id')//上一页列表id
        var listOrder = getUrlParms('order')
        var listStatus = getUrlParms('status')
        console.log(listStatus)

        var goodsAmount = 0//商品总额
        var goodsFreight = 0//商品总运费
        var goodsAllMany = 0//商品应付款
        $(document).ready(function () {
            tabFun()
            tabFunb()
            tabFunc()
            IsTokenSave();
            $(".fancybox").fancybox({openEffect:"none",closeEffect:"none"});
            userMessage = JSON.parse(sessionStorage.getItem("user_message"));
            if (userMessage.type == 1) {
                // 是大B管理员权限的人
                $('.orderTab tr')
                var th = $(".orderTab tr th").eq(4);
                th.after("<th>店铺</th>");
            }
            $(".refresh_a").click(function () { //返回上一页
                // window.history.go(-1); 
                window.location.href='./orderList.html?time='+new Date().getTime().toString()
            });
            $(".i-checks").iCheck({ //check必须有的脚本
                checkboxClass: "icheckbox_square-green",
                radioClass: "iradio_square-green",
            });
            InitTbodyList()
            InitTbodyLista()
            InitTbodyListb()
            InitTbodyListc()
        });
      
         // 画表格
        function tabFun(){
            var tabW = $(".coupon_table tr").width(); // 表格的宽度
            var tdW = $(".coupon_table_box td").width(); // 一个内容的宽度
            var bor = parseInt(tabW/tdW); // 一行有多少个td
            var cha = tabW - tdW*bor; // 差值
            if (cha <= bor) { // 去掉一个边框的宽度
                bor--;
            }
            // 清空边框
            $(".coupon_table_box td").css({"border-right":"none","border-top":"none"});
            // 设置相应的边框
            $(".coupon_table_box td:nth-child("+bor+"n)").css({"border-right":"1px solid #999999"});
            $(".coupon_table_box td").slice(0,bor).css({"border-top":"1px solid #999999"});

            // 所有.my_title的高度集合
            var titH = [];
            // 所有.my_content的高度集合
            var conH = [];
            $(".my_content").each(function(index, el) {
                // 把高度数据存放到conH数组里面
                conH.push($(this).height());
            });
            $(".my_title").each(function(index, el) {
                // 把高度数据存放到titH数组里面
                titH.push($(this).height());
            });
            // 获取最大高度并把其它my_content高度设为最大高度
            $(".my_content").height(Math.max.apply(null, conH));
            // 获取最大高度并把其它my_title高度设为最大高度
            $(".my_title").height(Math.max.apply(null, titH));
        }

        function tabFunb(){
            var tabW = $(".coupon_table_b tr").width(); // 表格的宽度
            var tdW = $(".coupon_table_boxb td").width(); // 一个内容的宽度
            var bor = parseInt(tabW/tdW); // 一行有多少个td
            var cha = tabW - tdW*bor; // 差值
            if (cha <= bor) { // 去掉一个边框的宽度
                bor--;
            }
            // 清空边框
            $(".coupon_table_boxb td").css({"border-right":"none","border-top":"none"});
            // 设置相应的边框
            $(".coupon_table_boxb td:nth-child("+bor+"n)").css({"border-right":"1px solid #999999"});
            $(".coupon_table_boxb td").slice(0,bor).css({"border-top":"1px solid #999999"});

            // 所有.my_title的高度集合
            var titH = [];
            // 所有.my_content的高度集合
            var conH = [];
            $(".my_contentb").each(function(index, el) {
                // 把高度数据存放到conH数组里面
                conH.push($(this).height());
            });
            $(".my_titleb").each(function(index, el) {
                // 把高度数据存放到titH数组里面
                titH.push($(this).height());
            });
            // 获取最大高度并把其它my_content高度设为最大高度
            $(".my_contentb").height(Math.max.apply(null, conH));
            // 获取最大高度并把其它my_title高度设为最大高度
            $(".my_titleb").height(Math.max.apply(null, titH));
        }

        function tabFunc(){
            var tabW = $(".coupon_table_c tr").width(); // 表格的宽度
            var tdW = $(".coupon_table_boxc td").width(); // 一个内容的宽度
            var bor = parseInt(tabW/tdW); // 一行有多少个td
            var cha = tabW - tdW*bor; // 差值
            if (cha <= bor) { // 去掉一个边框的宽度
                bor--;
            }
            // 清空边框
            $(".coupon_table_boxc td").css({"border-right":"none","border-top":"none"});
            // 设置相应的边框
            $(".coupon_table_boxc td:nth-child("+bor+"n)").css({"border-right":"1px solid #999999"});
            $(".coupon_table_boxc td").slice(0,bor).css({"border-top":"1px solid #999999"});

            // 所有.my_title的高度集合
            var titH = [];
            // 所有.my_content的高度集合
            var conH = [];
            $(".my_contentc").each(function(index, el) {
                // 把高度数据存放到conH数组里面
                conH.push($(this).height());
            });
            $(".my_titlec").each(function(index, el) {
                // 把高度数据存放到titH数组里面
                titH.push($(this).height());
            });
            // 获取最大高度并把其它my_content高度设为最大高度
            $(".my_contentc").height(Math.max.apply(null, conH));
            // 获取最大高度并把其它my_title高度设为最大高度
            $(".my_titlec").height(Math.max.apply(null, titH));
        }

        /**
         * 该方法用于初始化列表
         * @param {Number}
         * */
        function InitTbodyList() {
            Showload("正在初始化列表......");
            tableTimeout = setInterval("Timeout(tableTimeout)", 1000);
            $.ajax({
                type: "get",
                url: urls + common_url.selectOrderBaseInfo,
                async: true,
                timeout: 30000,
                dataType: "json",
                headers: {
                    'X-Access-Token': userMessage.token,
                },
                data: {
                    id: listId
                },
                success: function (json) {
                    CheckLogout(json); //检查是否登陆过期
                    if (json.code == 0) {
                        var myData = json.data
                        $('.infoa').html(json.data.order_serial_number);
                        $('.infoc').html(json.data.phone);
                        
                       
                        $('.infob').html('暂无');

                        if (json.data.order_type == 1) {
                            $('.infof').html('小B商城普通订单');
                        } else if (json.data.order_type == 2) {
                            $('.infof').html('导购员自己代言(导购员领取商品)');
                        } else if (json.data.order_type == 3) {
                            $('.infof').html('商家找导购代言(导购员领取商品)');
                        } else if (json.data.order_type == 4) {
                            $('.infof').html('通过导购员购买的订单');
                        }

                        if (json.data.pay_type == 1) {
                            $('.infod').html('支付宝支付');
                        } else if (json.data.pay_type == 2) {
                            $('.infod').html('微信支付');
                        } else if (json.data.pay_type == 3) {
                            $('.infod').html('保盾支付');
                        } else if (json.data.pay_type == 4) {
                            $('.infod').html('支付宝+保盾支付');
                        } else if (json.data.pay_type == 5) {
                            $('.infod').html('微信+保盾支付');
                        }
                        
                        if (json.data.order_source == 1) {
                            $('.infoe').html('APP购买');
                        }
                        if (json.data.order_delivery == 0) {
                            $('.infog').html('需要发货');
                        } else {
                            $('.infog').html('不需要发货（自提');
                        }
                       
                        $('.infoh').html(json.data.express_number);
                        $('.infoi').html('暂无');
                        $('.infoj').html('暂无');
                        $('.infok').html('暂无');
                        $('.infol').html('暂无');
                    } else {
                        TipsAlert(json.code);
                    }
                    InitTime(tableTimeout);
                },
                error: function (xml, text, errorThrown) {
                    if (text == "timeout") {
                        TipsAlert("请求超时,请检查网络或着重新打开该页面.");
                    } else {
                        TipsAlert("请求数据失败,请联系后台技术人员");
                    }
                    InitTime(tableTimeout);
                }

            });
        }
        function InitTbodyLista() {
            $.ajax({
                type: "get",
                url: urls + common_url.selectAddressInfo,
                async: true,
                timeout: 30000,
                dataType: "json",
                headers: {
                    'X-Access-Token': userMessage.token,
                },
                data: {
                    orderSerialNumber: listOrder
                },
                success: function (json) {
                    CheckLogout(json); //检查是否登陆过期
                    if (json.code == 0) {
                        $('.goodsInfoa').html(json.data.link_man);
                        
                        $('.goodsInfob').html(json.data.connect_phone);
                        $('.goodsInfoc').html(json.data.zip_code);
                        $('.goodsInfod').html(json.data.address);

                        if (listStatus == 1) {
                            
                            $('.noStates').html('待支付');
                            $(".stepa").addClass("last-sucess")
                        } else if (listStatus == 2) {
                            $('.noStates').html('待发货');
                            $(".stepa").addClass("is-sucess")
                            $(".stepb").addClass("last-sucess")
                        } else if (listStatus == 3) {
                            $('.noStates').html('待收货');
                            $(".stepa").addClass("is-sucess")
                            $(".stepb").addClass("is-sucess")
                            $(".stepc").addClass("last-sucess")
                        } else if (listStatus == 4) {
                            $(".stepd").css("display","inline-block")
                            $(".stepa").addClass("is-sucess")
                            $(".stepb").addClass("is-sucess")
                            $(".stepc").addClass("is-sucess")
                            $(".stepd").addClass("last-sucess")
                            $('.noStates').html('待评价');
                        } else if (listStatus == 5) {
                            $('.noStates').html('已完成');
                            $(".stepd").css("display","inline-block")
                            $(".stepa").addClass("is-sucess")
                            $(".stepb").addClass("is-sucess")
                            $(".stepc").addClass("is-sucess")
                            $(".stepd").addClass("is-sucess")
                            $(".stepe").addClass("is-sucess")
                            $(".stepf").addClass("last-sucess")
                        } else if (listStatus == 6) {
                            $('.noStates').html('退款中');
                            $(".stepe").css("display","inline-block")
                            $(".stepa").addClass("is-sucess")
                            $(".stepb").addClass("is-sucess")
                            $(".stepc").addClass("is-sucess")
                            $(".stepd").addClass("is-sucess")
                            $(".stepe").addClass("last-sucess")
                        } else if (listStatus == 7) {
                            $('.noStates').html('退货完成');
                            $(".stepd").css("display","inline-block")
                            $(".stepg").css("display","inline-block")
                            $(".stepa").addClass("is-sucess")
                            $(".stepb").addClass("is-sucess")
                            $(".stepc").addClass("is-sucess")
                            $(".stepd").addClass("is-sucess")
                            $(".stepe").addClass("is-sucess")
                            $(".stepf").addClass("last-sucess")
                        } else if (listStatus == 8) {
                            $('.noStates').html('退款失败');
                            $(".stepe").css("display","inline-block")
                            $(".stepa").addClass("is-sucess")
                            $(".stepb").addClass("is-sucess")
                            $(".stepc").addClass("is-sucess")
                            $(".stepd").addClass("is-sucess")
                            $(".stepe").addClass("last-sucess")
                        } else if (listStatus == 9) {
                            $('.noStates').html('退款完成');
                            $(".stepe").css("display","inline-block")
                            $(".stepa").addClass("is-sucess")
                            $(".stepb").addClass("is-sucess")
                            $(".stepc").addClass("is-sucess")
                            $(".stepd").addClass("is-sucess")
                            $(".stepe").addClass("last-sucess")
                        } else if (listStatus == 10) {
                            $(".stepa").addClass("is-sucess")
                            $(".stepb").addClass("last-sucess")
                            $('.noStates').html('已关闭');
                        } else {
                            payStatus = '已删除'
                        }
                       
                    } else {
                        TipsAlert(json.code);
                    }
                },
                error: function (xml, text, errorThrown) {
                    if (text == "timeout") {
                        TipsAlert("请求超时,请检查网络或着重新打开该页面.");
                    } else {
                        TipsAlert("请求数据失败,请联系后台技术人员");
                    }
                    InitTime(tableTimeout);
                }

            });
        }

        function InitTbodyListb() {
            $.ajax({
                type: "get",
                url: urls + common_url.selectGoodsInfo,
                async: true,
                timeout: 30000,
                dataType: "json",
                headers: {
                    'X-Access-Token': userMessage.token,
                },
                data: {
                    id: listId
                },
                success: function (json) {
                    CheckLogout(json); //检查是否登陆过期
                    if (json.code == 0) {
                        var myData = json.data
                        for (var i = 0; i < myData.length; i++) {
                            var story = ''
                            allMany = floatMul(myData[i]["product_price"],myData[i]["product_counts"])
                            goodsAmount=floatAdd(goodsAmount, allMany)
                            goodsFreight = floatAdd(goodsFreight, myData[i].zip_fee)

                            if (userMessage.type == 1) {
                                // 是大B管理员权限的人
                                story = '<td>'+ myData[i].store_name+'</td>'
                            }
                            tableHtml = tableHtml + '<tr>'+
                                '<td><a class="fancybox" href="'+imgUrl + myData[i].goods_url+'" title="功能图标"><img src="'+imgUrl +myData[i].goods_url+'" width="60px" height="60px" class="layui-upload-img gw_previewImg"></a></td>' +
                                '<td class="c_1ABC9C">' + myData[i]["goods_name"] + '</td>' +
                                '<td><p>价格：'+myData[i]["product_price"]+'</p><p>货号：'+myData[i].product_no+'</p></td>' +
                                '<td><p>颜色：'+myData[i].goods_color+'</p></td>' +
                                '<td>' + myData[i]["product_counts"] + '</td>' +
                                story+
                                '<td>' + myData[i]["goods_tory"] + '</td>' +
                                '<td>' + allMany + '</td>' +
                                '</tr>';
                        }
                        goodsAllMany = floatAdd(goodsFreight, goodsAmount)
                        $("#tbody_list1").html(tableHtml);
                        $(".coupon_table_allmany").html(goodsAmount);
                        $('.costInfoa').html(goodsAmount);
                        $('.costInfob').html(goodsFreight);

                        $('.costInfog').html(goodsAllMany);
                        $('.costInfoh').html(goodsAllMany);

                        DealTable();
                    } else {
                        TipsAlert(json.code);
                    }
                },
                error: function (xml, text, errorThrown) {
                    if (text == "timeout") {
                        TipsAlert("请求超时,请检查网络或着重新打开该页面.");
                    } else {
                        TipsAlert("请求数据失败,请联系后台技术人员");
                    }
                    InitTime(tableTimeout);
                }

            });
        }

        function InitTbodyListc() {
            $.ajax({
                type: "get",
                url: urls + common_url.selectFeeInfo,
                async: true,
                timeout: 30000,
                dataType: "json",
                headers: {
                    'X-Access-Token': userMessage.token,
                },
                data: {
                    id: listId
                },
                success: function (json) {
                    CheckLogout(json); //检查是否登陆过期
                    if (json.code == 0) {
                        var myData = json.data
                        
                        
                        $('.costInfoc').html(json.data.goods_coupons_diko);
                        // $('.costInfod').html(json.data.baodunDK);
                      

                    } else {
                        TipsAlert(json.code);
                    }
                },
                error: function (xml, text, errorThrown) {
                    if (text == "timeout") {
                        TipsAlert("请求超时,请检查网络或着重新打开该页面.");
                    } else {
                        TipsAlert("请求数据失败,请联系后台技术人员");
                    }
                }

            });
        }

        //加法运算    
        function floatAdd(arg1, arg2) {
            var r1, r2, m;
            try { r1 = arg1.toString().split(".")[1].length } catch (e) { r1 = 0 }
            try { r2 = arg2.toString().split(".")[1].length } catch (e) { r2 = 0 }
            m = Math.pow(10, Math.max(r1, r2));
            return (arg1 * m + arg2 * m) / m;
        }

        //减法运算    
        function floatSub(arg1, arg2) {
            var r1, r2, m, n;
            try { r1 = arg1.toString().split(".")[1].length } catch (e) { r1 = 0 }
            try { r2 = arg2.toString().split(".")[1].length } catch (e) { r2 = 0 }
            m = Math.pow(10, Math.max(r1, r2));
            //动态控制精度长度    
            n = (r1 >= r2) ? r1 : r2;
            return ((arg1 * m - arg2 * m) / m).toFixed(n);
        }

        //乘法运算    
        function floatMul(arg1, arg2) {
            var m = 0, s1 = arg1.toString(), s2 = arg2.toString();
            try { m += s1.split(".")[1].length } catch (e) { }
            try { m += s2.split(".")[1].length } catch (e) { }
            return Number(s1.replace(".", "")) * Number(s2.replace(".", "")) / Math.pow(10, m);
        }

        //除法运算  
        function floatp(arg1, arg2) {
            var t1 = 0, t2 = 0, r1, r2;
            try { t1 = arg1.toString().split(".")[1].length } catch (e) { }
            try { t2 = arg2.toString().split(".")[1].length } catch (e) { }
            r1 = Number(arg1.toString().replace(".", ""));
            r2 = Number(arg2.toString().replace(".", ""));
            return (r1 / r2) * Math.pow(10, t2 - t1);
        }
    </script>
</body>

</html>